﻿/************************************************************************************
 *      Copyright (C) 2015 yuwei,All Rights Reserved
 *      File:
 *                AccountService.cs
 *      Description:
 *            AccountService
 *      Author:
 *                yxw
 *                
 *                
 *      Finish DateTime:
 *                2017/12/4 15:37:45
 *      History:
 ***********************************************************************************/

using FrameWork.Entity.Entity;
using FrameWork.Entity.Model.Account;
using FrameWork.Entity.ViewModel.Account;
using FrameWork.Interface;

namespace FrameWork.ServiceImp
{
    /// <summary>
    /// AccountService
    /// </summary>
    public class AccountService : BaseService<T_User>, IAccountService
    {
        /// <summary>
        /// 获取信息
        /// </summary>
        public DemoMethodModel DemoMethod(DemoMethodRequest request)
        {
            var sql = @"
                    SELECT
	                    Account ,
                        RealName ,
                        Phone ,
                        Email
                    FROM
	                    T_User
                    WHERE
	                    IsDel = 0 AND IsUsed = 1 AND Id = @Id";
            return DbQuestionBank.FirstOrDefault<DemoMethodModel>(sql, new { request.Id });
        }

    }
}
